# Contributor: Jürgen Brunink <oss@jbserver.eu>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=justc-envdir
pkgver=1.0.1
pkgrel=0
pkgdesc="Fork of s6-envdir that reads entire files"
url="https://github.com/just-containers/justc-envdir/"
arch="all"
license="ISC"
makedepends="skalibs-dev"
options="!check" # no test suite/unit tests
source="$pkgname-$pkgver.tar.gz::https://github.com/just-containers/justc-envdir/archive/v$pkgver.tar.gz
	"

build() {
	./configure \
		--enable-shared \
		--disable-allstatic \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -r "$pkgdir"/usr/include
}

sha512sums="e657ada6424e1950d21603ead4d643da2e0e1a22f7c508593b5d295b9b7cfb0b083a211c9f0e1a7036d7b620fe5cef2f64b66c0c99c9dbd7f8b07731613df29c  justc-envdir-1.0.1.tar.gz"
